<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/11/16
 * Time: 14:45
 */

namespace App\Jobs;


use Illuminate\Contracts\Mail\Mailer;

class SendReminderEmail extends Job
{
    protected $email;
    /**
     * Create a new job instance.
     *
     * @return void
     */
    public function __construct($email)
    {
        $this->email = $email;
    }

    /**
     * Execute the job.
     *
     * @return void
     */
    public function handle()
    {
        $filename = storage_path()."/logs/jobs.log";
        $content = $this->email."\n";
        file_put_contents($filename,$content,FILE_APPEND);
    }
}